<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/10/6
  Time: 15:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>主页</title>
    <link href="css/bootstrap.css" type="text/css" rel="stylesheet" media="all">
    <link href="css/style.css" type="text/css" rel="stylesheet" media="all">
    <!--web-font-->
    <%--<link href='http://fonts.useso.com/css?family=Marvel:400,400italic,700,700italic' rel='stylesheet' type='text/css'>--%>
    <%--<link href='http://fonts.useso.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>--%>
    <!--//web-font-->
    <!-- Custom Theme files -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="keywords" content="Plot Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template,
	Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design"/>
    <script type="application/x-javascript"> addEventListener("load", function () {
        setTimeout(hideURLbar, 0);
    }, false);
    function hideURLbar() {
        window.scrollTo(0, 1);
    } </script>
    <!-- //Custom Theme files -->
    <!-- js -->
    <script src="js/jquery-1.11.1.min.js"></script>
    <!-- //js -->
    <!-- start-smoth-scrolling-->
    <script type="text/javascript" src="js/move-top.js"></script>
    <script type="text/javascript" src="js/easing.js"></script>
    <script type="text/javascript">
        jQuery(document).ready(function ($) {
            $(".scroll").click(function (event) {
                event.preventDefault();
                $('html,body').animate({scrollTop: $(this.hash).offset().top}, 1000);
            });
        });
    </script>
    <!--//end-smoth-scrolling-->
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <!--side-bar-->
        <div class="col-sm-3 col-md-2 sidebar">
            <div class="logo">
                <span style="font-size: 20px;font-weight: 500"><a href="student_index.jsp">作业管理系统</a></span>
            </div>
            <div class="top-nav">
                <span class="menu-icon"> </span>
                <div class="nav1">
                    <ul class=" nav nav-sidebar">
                        <li id="index_li"><a href="student_index.jsp">主页</a></li>
                        <%--<li id="my_message"><a href="teacher_add_work.jsp">我的消息</a></li>--%>
                        <li id="history_work_li"><a href="${pageContext.request.contextPath}/stu_history_work?isFinish=1">作业记录</a></li>
                        <li id="my_class_li"><a href="${pageContext.request.contextPath}/stu_my_class">所在班级</a></li>
                        <li id="exit"><a href="#" onclick="exit()">退出登录</a></li>
                    </ul>

                    <div class="social-icons" style="margin-top: 190px">
                        <ul>
                            <li><a href="#"></a></li>
                            <li><a href="#" class="fb"></a></li>
                            <li><a href="#" class="be"></a></li>
                            <li><a href="#" class="gg"></a></li>
                        </ul>
                    </div>
                </div>
                <!-- script-for-menu -->
                <script>
                    $("span.menu-icon").click(function () {
                        $(".nav1").slideToggle(300, function () {
                            // Animation complete.
                        });
                    });
                </script>
                <!-- /script-for-menu -->
            </div>
            <div class="clearfix"></div>
            <p>Copyright &copy; 周春艳</p>
        </div>
    </div>
</div>
<script>
    function exit(){

        if (confirm("确认退出登录？")){

            <%--<%session.invalidate();%>--%>
            window.location = "login.jsp?exit=1";
//
        }

    }
</script>
</body>
</html>
